package com.yun.many.auth.model.req;

import com.yun.many.auth.dao.enums.UserStatusEnum;
import com.yun.many.auth.model.group.ValidGroup.Add;
import com.yun.many.auth.model.group.ValidGroup.Update;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

@Data
public class UserEditReq implements Serializable {
    private Long id;
    @NotBlank(message = "用户名不能为空")
    private String username;
    private String password;
    private String nickname;
    private String avatar;
    private String phone;
    @NotNull(message = "生日不能为空")
    private LocalDate birthday;
    private String email;
    @NotNull(message = "性别不能为空")
    private Integer sex;

    private UserStatusEnum status;
}
